package homeworekl;

import java.util.Comparator;

public class Compare implements Comparator<Student>, java.io.Serializable {
        public int compare(Student o1, Student o2) {
            double area1 = o1.getAchievement();
            double area2 = o2.getAchievement();
            if (area1 < area2)
                return -1;
            else if (area1 == area2)
                return 0;
            else
                return 1;

        }}
